package maquina;

import java.util.Stack;

public class Pila<T> {
	private Stack<T> stack;

	public Pila() {
		stack = new Stack<T>();
	}
	
	public Pila(Stack<T> p){
		stack = p;
	}
	public Stack<T> getStack(){
		return stack;
	}

	public boolean empty() {
		return stack.empty();
	}

	public void push(T item) {
		stack.push(item);
	}

	public T pop() {
		return (T)stack.pop();
	}

	public T peek() {
		return (T)stack.peek();
	}
	public int size(){
		return stack.size();
	}
}


